// import { http } from "../utils/http";
import http from "../utils/http/service";

// 角色列表
export const roleList = (data): any => {
  return http.post("/snow-admin/sysRole/roleList", data);
};

// 添加角色
export const addrole = (data): any => {
  return http.post("/snow-admin/sysRole/add", data);
};

// 删除角色
export const deleterole = (data): any => {
  return http.post("/snow-admin/sysRole/delete", data);
};

// 更新角色
export const updaterole = (data): any => {
  return http.post("/snow-admin/sysRole/update", data);
};

// 角色赋予菜单
export const roleMenu = (data): any => {
  return http.post("/snow-admin/sysRole/roleMenu", data);
};

// 查询角色菜单
export const searchRoleMenu = (data): any => {
  return http.post("/snow-admin/sysRole/getRoleMenus", data);
};

// 角色类型，数据字典
export const postDictList = (data): any => {
  return http.post("/snow-admin/sysDict/dictList", data);
};
